package com.thermal.thermal_inspection.controller;

import com.thermal.thermal_inspection.common.CommonResponse;
import com.thermal.thermal_inspection.feign.InspectionFeignService;
import com.thermal.thermal_inspection.vo.StatusNumVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/xiaozhibiao")
public class InspectionController {
    @Autowired
    private InspectionFeignService inspectionFeignService;
    //获取巡检信息
    @GetMapping("/inspectionMsg")
    public CommonResponse<String> getInspectionMsg(@RequestParam int userId){
        String statusNumVOCommonResponse = inspectionFeignService.getStatusNum(userId);
        System.out.println(statusNumVOCommonResponse);

        return CommonResponse.createForSuccess();
    }
}
